package com.example.feigntest.feignclient;

import com.example.feigntest.controller.FeignEncoderTestController;
import com.example.feigntest.dto.Order;
import com.example.feigntest.feignclient.config.EncoderConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 描述：测试 feign Encoder 编码
 *
 * @author YangQun by 2020/10/17
 */
@FeignClient(name = "EncoderTest",
        configuration = EncoderConfig.class,
        url = "http://localhost:${server.port}")
public interface EncoderTestClient {

    /**
     * 请求测试
     * @param order entity
     */
    @PostMapping(FeignEncoderTestController.URI)
    void test(Order order);
}
